package com.dw.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dw.model.article.dtos.category.AddCategoryDTO;
import com.dw.model.article.dtos.category.AddCategoryHotDTO;
import com.dw.model.article.dtos.category.QueryCategoryDTO;
import com.dw.model.article.entitys.CategoryInfo;

import java.util.List;

/**
 * 文章分类表(CategoryInfo)表服务接口
 *
 * @author makejava
 * @since 2024-10-05 19:44:34
 */
public interface CategoryInfoService extends IService<CategoryInfo> {

    Boolean addCategory(AddCategoryDTO addCategoryDTO);

    List<CategoryInfo> queryCategoryByIds(List<Long> categoryIds);

    List<CategoryInfo> queryCategory(QueryCategoryDTO queryCategoryDTO);

    CategoryInfo queryCategoryNameById(Long categoryId);
}

